package com.wl4837;

public class App
{
    public static void main( String[] args )
    {
        Coffee coffee = new SimpleCoffee();
        // MilkDecorator 的父级 相当于是 SimpleCoffee
        coffee = new MilkDecorator(coffee);
        // SugarDecorator 的父级 相当于是 MilkDecorator
        coffee = new SugarDecorator(coffee);
        System.out.println("费用: " + coffee.getCost());
        System.out.println("描述: " + coffee.getDescription());
    }
}
